package com.easylive.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: yudaxian
 * @Description: 用户主题
 * @DateTime: 2024/11/2 20:18
 **/
@AllArgsConstructor
@Getter
public enum ThemeEnum {
    DEFAULT(1, "默认"),
    ;
    private Integer code;

    private String desc;

    public static ThemeEnum getByCode(Integer code) {
        for (ThemeEnum e : ThemeEnum.values()) {
            if (e.getCode().equals(code)) {
                return e;
            }
        }
        return null;
    }
}
